package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class MainActivity_home extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_home);

    }

    public void gotoMainActivity2(View view) {
        // 创建一个 Intent 对象，用于启动 MainActivity2
        Intent intent = new Intent(this, MainActivity2.class);
        // 启动新的 Activity
        startActivity(intent);
    }
    public void gotoMainActivity_profile(View view) {
        // 创建一个 Intent 对象，用于启动 activity_profile
        Intent intent = new Intent(this, activity_profile.class);
        // 启动新的 Activity
        startActivity(intent);
    }
    public void gotoMainActivity3(View view) {
        // 创建一个 Intent 对象，用于启动 activity_profile
        Intent intent = new Intent(this, MainActivity3.class);
        // 启动新的 Activity
        startActivity(intent);
    }
    public void gotoMainActivity4(View view) {
        // 创建一个 Intent 对象，用于启动 activity_profile
        Intent intent = new Intent(this, MainActivity4.class);
        // 启动新的 Activity
        startActivity(intent);
    }

}